<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->

<head>
<meta charset="utf-8">
<title>查看联系人</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<link href="${request.getContextPath()}/Public/assets/admin/css/css.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css">

<link href="${request.getContextPath()}/Public/assets/global/css/components-rounded.css" id="style_components" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/css/plugins.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/layout.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color">
<link href="${request.getContextPath()}/Public/assets/admin/css/custom.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/common.css" rel="stylesheet" type="text/css">

<link rel="shortcut icon" href="${request.getContextPath()}/Public/favicon.ico">
<!--[if lt IE 9]>
<script src="${request.getContextPath()}/Public/assets/global/plugins/respond.min.js"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>

<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.sparkline.min.js" type="text/javascript"></script>

<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js" type="text/javascript"></script>

<script src="${request.getContextPath()}/Public/assets/global/scripts/metronic.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/admin/scripts/layout.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/admin/scripts/indexComponent.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/admin/scripts/commonUtils.js" type="text/javascript"></script>
<script>
	BASE_URL = '${request.getContextPath()}'
</script>
</head>
<body class="page-header-top-fixed">
<div class="page-header">
	<!--头部开始-->
	<#include "/include/top.html" />
	<!-- 头部信息结束 -->

	<!-- 头部菜单开始 -->
	<#include "/include/top_menu.html" />
	<!-- 头部菜单结束 -->
</div>
<!-- END HEADER -->
<!-- BEGIN PAGE CONTAINER -->

		<div class="page-container">
	<div class="page-content">
		<div class="container-fluid">
		<ul class="page-breadcrumb breadcrumb">
				<li>
					<a href="#">首页</a><i class="fa fa-circle"></i>
				</li>
				<li class="active">
					 客户管理<i class="fa fa-circle"></i>
				</li>
				<li class="active">
					 线索池
				</li>
				<li class="active">
					添加线索
				</li>
			</ul>
			<div class="row margin-top-10">
				<div class="col-md-12">
								<div class="portlet light bordered">
								<div>
									<h3>查看联系人</h3>
								</div>
									<div class="portlet-body">
										<table class="tb" cellspacing="1" border="1">
											<tr >
												<td class="tdTitle">姓名</td>
												<td class="tdContent">${contacter.name?if_exists}</td>
												<td class="tdTitle">性别</td>
												<td class="tdContent">
													<#if contacter.sex?exists>
														<#if contacter.sex==0>
															男士
														<#else>
															女士
														</#if>
													</#if>
												</td>
											</tr>
											<tr>
												<td class="tdTitle">职位</td>
												<td class="tdContent">${contacter.position?if_exists}</td>
												<td class="tdTitle">手机</td>
												<td class="tdContent">${contacter.mobilePhone?if_exists}</td>
											</tr>
											<tr>
												<td class="tdTitle">QQ</td>
												<td class="tdContent">${contacter.qq?if_exists}</td>
												<td class="tdTitle">固话</td>
												<td class="tdContent">${contacter.telephone?if_exists}</td>
											</tr>
											<tr>
												<td class="tdTitle">邮箱</td>
												<td class="tdContent">${contacter.email?if_exists}</td>
												<td class="tdTitle">交易身份</td>
												<td class="tdContent">
												  <#if contacter.tidentity??>
														<#if contacter.tidentity==0>
															采购
														<#elseif contacter.tidentity==1>
															销售
															<#else>
															采购和销售
														</#if>
													</#if>
												</td>
   										</tr>
											
											<tr>
												<td class="tdTitle">是否是关键人</td>
												<td class="tdContent">
												

													<#if contacter.keyPerson?exists && contacter.keyPerson==1>
														是
														<#else>
														否
													</#if>
												
												</td>
												<td class="tdTitle">所属企业</td>
												<td class="tdContent"><#if (contacter.customer)??>${contacter.customer.companyName?if_exists}</#if></td>
											</tr>
											
											
											<tr>
												<td class="tdTitle">创建人</td>
												<td class="tdContent"><#if contacter.createdUser?exists>${contacter.createdUser.name?if_exists}</#if></td>
												<td class="tdTitle">创建时间</td>
												<td class="tdContent"><#if (contacter.createdAt)??>${(contacter.createdAt)?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
											</tr>
											
											
											<tr>
												<td class="tdTitle">修改人</td>
												<td class="tdContent"><#if contacter.updatedUser?exists>${contacter.updatedUser.name?if_exists}</#if></td>
												<td class="tdTitle">修改时间</td>
												<td class="tdContent"><#if (contacter.updatedAt)??>${(contacter.updatedAt)?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
											</tr>
										</table>
										<div style="width: 100%;text-align: center;margin-top: 50px;">
													<a  class="btn green" href="${request.getContextPath()}/contacter/contacterList.do">
														<i class="fa  fa-reply"></i> 返回
													</a>				
										</div>
										<br>
										<br>
									</div>
								</div>    
		</div>
		</div>
		</div>
		</div>
		</div>
<!-- END PAGE CONTAINER -->

<!-- 底部开始 -->
<#include "/include/foot.html" />
<!-- 底部结束 -->
</body>
<script>
	
	

	
	
	
	jQuery(document).ready(function() {
	   
	   Metronic.init(); // init metronic core componets
	   Layout.init(); // init layout
	   IndexComponent.init(); // init index component
	});
	recordDate();
	//初始化日期
	function recordDate() {
		var nowDate = new Date();
        //$('#date-picker').attr("date-date",nowDate.getFullYear()+"/"+parseInt(nowDate.getMonth()+1)+"/"+nowDate.getDate());
        $('.date-picker').datepicker({
    	    autoclose: true	   
    	});
	}
	
	$("#savetButton").bind("click",function(){
		alert("保存");
		$.ajax({
			url : "${request.getContextPath()}/dealMake/addSellPool.do",
			type : "post",
			dataType:"json",
			async: false,
			data : $("#dataForm").serialize(),
			success : function(result) {
			   if(result.code=="success"){
				   	    alert("保存成功")
			      		window.location.href="${request.getContextPath()}/dealMake/sellOrder.do";
				}else {
					$.alert(result.message);
		   		}
			   }
			});
	});
</script>
</html>

